﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.Data.Objects;
using Model;

namespace DAL_EF
{
    public class TeacherRepository : ITeacherRepository
    {


        public List<Model.Teacher> getTeacher()
        {
            using (var edm = new ProjectbEntities())
            {
                var teachers = (from t in edm.Teachers
                                select t).ToList<Teacher>();


                return EntityConverter.ToModelTeacher(teachers);

            }
        }

    }
}

